package pATT.DataSetsGenerator.dataSetsGenerator.attribute.implement;


public class StringAttribute extends Attribute {
	
	private int quantityValues = 0;
	private String nameValue = "";
	
	public StringAttribute(boolean null1, String name, String type, int values, String value) {
		super(null1, name, type);
		nameValue = value;
		quantityValues = values;
		recoveryValues();		
	}

	@SuppressWarnings("unchecked")
	private void recoveryValues(){
		for (int i = 1; i <= quantityValues; i++) {
			values.addElement(getNameValue()+i);		
			System.out.println("-->ValueString: "+getNameValue()+i);
		}	
	}

	
	public String getNameValue() {
		if(nameValue.equals(""))
			return getName();
		return nameValue;
	}
}
